<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex orderList_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between orderList_fd0_0'>
          <view class='flex flex-wrap align-center orderList_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <image class='orderList_fd0_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"5.png"'></image>
          </view>
          <view class='flex flex-wrap align-center'>
            <text class='orderList_fd0_0_c1_c0'>订单</text>
          </view>
          <view class='flex align-center justify-end orderList_fd0_0_c2'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>


      <!---flex布局flex布局开始-->
      <view class="flex benben-flex-layout flex-wrap align-center orderList_flex_3">
        <view class='flex flex-direction align-stretch flex-sub orderList_fd3_0'>
          <text class='orderList_fd3_0_c0'>{{create_time}}平台回收价格</text>
          <view class='flex flex-wrap align-center orderList_fd3_0_c1'>
            <text class='orderList_fd3_0_c1_c0'>公示中心</text>
            <image class='orderList_fd3_0_c1_c1' mode="aspectFit" :src='STATIC_URL+"55.png"'></image>
          </view>
          <swiper class='flex align-center flex-sub swipers' :autoplay="true" :vertical="true" :circular="true">
            <swiper-item class='flex flex-wrap swiper-items' v-for="(item,index) in wallet" :key="index">
              <view class="flex flex-wrap align-center orderList_fd3_0_c2_c0" v-for="(itemC,indexC) in item"
                :key="indexC">
                <view class='text-cut orderList_fd3_0_c2_c0_c0'>{{itemC.name}}</view>
                <view class="text-cut">￥{{itemC.price}}/{{itemC.unit}}</view>
              </view>

            </swiper-item>
          </swiper>
          <!-- <view class='flex flex-wrap align-center flex-sub'>
            <view class='flex flex-wrap align-center orderList_fd3_0_c2_c0' v-for="(itemC,indexC) in wallet"
              :key="indexC">
              <view class='text-cut orderList_fd3_0_c2_c0_c0'>{{itemC.name}}</view>
              <view class="text-cut" style="width: 150rpx">￥{{itemC.price}}/{{itemC.unit}}</view>
            </view>
          </view> -->
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-stretch benben-flex-layout orderList_flex_4">
        <view>
          <benben-flex-tabs class-name='orderList_benbenTabsfd4_0' v-model="tabsTypefd4_0" ref="benben_tabsfd4_0"
            select-mark="benben_tabsfd4_0" key="benben_tabsfd4_0" :open-title-type='false' :open-sticky='false' :top='0'
            @change="getui65d1bb37cf25eFunc()" :is-show-content='false' :scrollspy='false'
            :tabs-info.sync="tabsInfofd4_0">

            <scroll-view @scroll="tabsInfofd4_0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd4_0"
              class="benben-tabs" style="width:750rpx" :scroll-x="true" :scroll-left.sync="tabsInfofd4_0.moveX"
              scroll-with-animation="all .3s ease">
              <view class="benben-tabs-content" id="benben_tabsfd4_0-content">
                <view id="benben_tabsfd4_0-title" class="benben-tabs-title flex flex align-center justify-around">
                  <view :class="{ 'checkTitlefd4_0': tabsTypefd4_0 == '1', 'flex flex-wrap align-center': true }"
                    @tap="tabsTypefd4_0 = '1'" :id="`benben_tabsfd4_0-title-item-${'1'}`">

                    <text>待接单</text>

                  </view>
                  <view :class="{ 'checkTitlefd4_0': tabsTypefd4_0 == '2', 'flex flex-wrap align-center': true }"
                    @tap="tabsTypefd4_0 = '2'" :id="`benben_tabsfd4_0-title-item-${'2'}`">

                    <text>待上门</text>

                  </view>
                  <view :class="{ 'checkTitlefd4_0': tabsTypefd4_0 == '3', 'flex flex-wrap align-center': true }"
                    @tap="tabsTypefd4_0 = '3'" :id="`benben_tabsfd4_0-title-item-${'3'}`">

                    <text>已完成</text>

                  </view>
                </view>
                <view :style="{ left: tabsInfofd4_0.lineleft, maxWidth: tabsInfofd4_0.lineWidth ,}"
                  id="benben_tabsfd4_0-line" class="benben-tabs-line flex benben-flex-tabs-line orderList_linefd4_0">
                </view>
              </view>
            </scroll-view>

          </benben-flex-tabs>

        </view>
        <view class='flex flex-direction align-stretch orderList_fd4_1' v-for="(item,index) in dataMessage"
          :key="index">
          <view class='flex flex-wrap align-center justify-between flex-sub orderList_fd4_1_c0'>
            <view class='flex flex-wrap align-center'>
              <text>订单：</text>
              <text>{{item.order_sn}}</text>
            </view>
            <view class='flex flex-wrap align-center'>
              <text class='orderList_fd4_1_c0_c1_c0'>{{item.order_status_name}}</text>
            </view>
          </view>
          <!-- <view class='flex flex-wrap align-center'>
            <text class='orderList_fd4_1_c1_c0'>型号</text>
            <text class='orderList_fd4_1_c1_c1'>{{item.type_no}}</text>
          </view> -->
          <!-- <view class='flex flex-wrap align-center'>
            <text class='orderList_fd4_1_c1_c0'>品牌</text>
            <text class='orderList_fd4_1_c1_c1'>{{item.brand}}</text>
          </view> -->
          <view class='flex flex-wrap align-center'>
            <text class='orderList_fd4_1_c1_c0'>种类</text>
            <text class='orderList_fd4_1_c1_c1'>{{item.cate}}</text>
          </view>
          <!-- <view class='flex flex-wrap align-center'>
            <text class='orderList_fd4_1_c1_c0'>型号</text>
            <text class='orderList_fd4_1_c1_c1'>{{item.type_no}}</text>
          </view> -->
          <view class='flex flex-wrap align-center'>
            <text class='orderList_fd4_1_c1_c0'>估计重量</text>
            <text class='orderList_fd4_1_c1_c1'>{{item.guji_wghit}}吨</text>
          </view>
          <view class='flex flex-wrap align-center'>
            <text class='orderList_fd4_1_c1_c0'>数量</text>
            <text class='orderList_fd4_1_c1_c1'>{{item.number}}</text>
          </view>
          <view class='flex align-center'>
            <text class='orderList_fd4_1_c1_c0'>地址</text>
            <view class='orderList_fd4_1_c1_c1' style="width:550rpx;">{{item.address}}</view>
          </view>
          <view class='flex flex-direction align-stretch justify-around orderList_fd4_1_c4'>
            <view class='flex flex-wrap align-center orderList_fd4_1_c4_c0'>
              <text>预约时间</text>
              <text class='orderList_fd4_1_c4_c0_c1'>{{item.time}}</text>
            </view>
            <view class='flex align-center orderList_fd4_1_c4_c0'>
              <text>回收师傅</text>
              <view class='flex flex-wrap align-center'>
                <image class='orderList_fd4_1_c4_c1_c1_c0' mode="aspectFit" :src="item.user_info.avatar"></image>
                <view class='text-cut orderList_fd4_1_c4_c1_c1_c1'>{{item.user_info.nickname}}</view>
              </view>
              <!-- <image class='orderList_fd4_1_c4_c1_c2' mode="aspectFit" @click.stop="callMobile(item.user_info.mobile)"
                :src='STATIC_URL+"6.png"'></image> -->
            </view>
          </view>
        </view>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  import pagingList from '@/common/mixin/paging_list.js';

  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "tabsInfofd4_0": {
          lineleft: '',
          lineWidth: '',
          moveX: 0,
          scrollX: 0,
          PageScrollX: 0
        },
        "tabsTypefd4_0": "1",
        "popupShow1679650134928": false,
        "popupShow1657247297312": false,
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "cut": "1",
        "cancel_id": "",
        "dataDetails": {
          "aid": "",
          "order_sn": "",
          "order_money": "",
          "payable_money": "",
          "coupon_id": "",
          "coupon_money": "",
          "send_time": "",
          "receive_time": "",
          "pay_time": "",
          "discount_money": "",
          "create_time": "",
          "pay_type": "",
          "status": "",
          "pay_type_str": "",
          "order_info": {
            "receiver_mobile": "",
            "receiver_address": "",
            "receiver_name": "",
            "remark": "",
            "province": "",
            "city": "",
            "district": "",
            "sex": "",
            "label_name": "",
            "express_price": "",
            "pickup_code": "",
            "pickup_img": ""
          },
          "order_goods_list": [],
          "shop_info": {
            "aid": "",
            "store_name": "",
            "store_logo": "",
            "store_logo_id": ""
          },
          "btn_list": {
            "cancel_order": "",
            "go_pay": "",
            "remind_send": "",
            "remind_already": "",
            "apply_invoice": "",
            "view_invoice": "",
            "apply_refund": "",
            "view_logistics": "",
            "confirm_receive": "",
            "evaluate": "",
            "delete_order": "",
            "pay_balance": ""
          },
          "is_multiple_package": "",
          "order_type": "",
          "advance_sn": "",
          "usermerchant_id": "",
          "discount_str": "",
          "surplus_receive_time": "",
          "group_info": {
            "join_timeout": "",
            "activity_status": "",
            "group_members_nums": "",
            "join_number": "",
            "status_txt": ""
          },
          "group_user": [],
          "real_money": "",
          "cancel_surplus_second": "",
          "balance_payment_stime": "",
          "balance_payment_etime": "",
          "receive_surplus_time": "",
          "goods_total": "",
          "pay_status": "",
          "final_order_sn": "",
          "balance_money": ""
        },
        "dataMessage": [],
        "invoiceData": [],
        "invoice_id": "",
        "text": "shenqingchengg",
        "money": 0,
        "order_id": "1026",
        "order_sn": "",
        "type": "",
        wallet: [],
        create_time: ''
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      if (global.appTabBarType) this.toHomeDiy()
      // this.getui65d1bb37cf25eFunc()

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
      this.getui65d1bb37cf25eFunc()
      this.getData()
    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      async getData() {
        //请求方法
        //数据验证

        let datawallet = await this.$api.get(global.apiUrls.post65eff07238662, {

        });

        if (datawallet.data.code != 1) {
          this.$message.info(datawallet.data.msg);
          return
        }
        let infowallet = datawallet.data;
        this.wallet = infowallet.data
        this.create_time = this.wallet[0][0].create_time

      },
      //用户端回收订单
      getui65d1bb37cf25eFunc() {
        this.minixPagingListsApi = global.apiUrls.post65d1bb37cf25e;
        this.pageingListApiMethod = 'get';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {
          order_status: this.tabsTypefd4_0
        }
        this.listData = [];
        this.dataMessage = this.listData;
        this.pagingListToggle();

      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  // .swipers {
  //   height: 200rpx;
  // }

  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: url(image-path('4.png')) no-repeat;
    background-size: 100% 420rpx;
  }

  .orderList_flex_0 {
    background: url(image-path('4.png')) no-repeat;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .orderList_fd0_0_c2 {
    padding: 0rpx 0rpx 0rpx 0rpx;
    width: 200rpx;
  }

  .orderList_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 600;
    color: #fff;
  }

  .orderList_fd0_0_c0_c0 {
    width: 200rpx;
    height: 42rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .orderList_fd0_0_c0 {
    width: 200rpx;
  }

  .orderList_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .orderList_flex_1 {
    background: #fff;
    background-size: 100% auto !important;
    border-radius: 24rpx 24rpx 0rpx 0rpx;
  }

  .orderList_fd1_0_c2_c0_c0_c1 {
    width: 32rpx;
    height: 32rpx;
  }

  .orderList_fd1_0_c2_c0_c0 {
    padding: 20rpx 0rpx 20rpx 0rpx;
  }

  .orderList_fd1_0_c2 {
    touch-action: none;
    width: 686rpx;
    height: 40vh;
    margin: 0rpx auto 40rpx auto;
  }

  .orderList_fd1_0_c1_c0 {
    font-size: 28rpx;
    font-weight: 400;
    color: #666666;
    padding: 25rpx 24rpx 25rpx 24rpx;
  }

  .orderList_fd1_0_c1 {
    background: #F8F8F8;
  }

  .orderList_fd1_0_c0_c2 {
    font-size: 28rpx;
    font-weight: 700;
    color: var(--benbenFontColor5);
    line-height: 40rpx;
  }

  .orderList_fd1_0_c0_c1 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
  }

  .orderList_fd1_0_c0_c0 {
    font-size: 28rpx;
    font-weight: 400;
    color: var(--benbenFontColor2);
    line-height: 40rpx;
  }

  .orderList_fd1_0_c0 {
    padding: 32rpx 32rpx 32rpx 32rpx;
  }

  .orderList_fd1_0 {
    border-radius: 24rpx 24rpx 0rpx 0rpx;
  }

  .orderList_flex_2 {
    background: #FFFFFF;
    border-radius: 24rpx 24rpx 0rpx 0rpx;
    padding: 41rpx 24rpx 40rpx 24rpx;
  }

  .orderList_fd2_3 {
    background: var(--benbenbgColor5);
    border-radius: 44rpx 44rpx 44rpx 44rpx;
    font-size: 32rpx;
    color: rgba(102, 102, 102, 1);
    width: 686rpx;
    height: 80rpx;
    line-height: 80rpx;
    margin: 0rpx 8rpx 0rpx 8rpx;
  }

  .orderList_fd2_2 {
    background: var(--benbenbgColor7);
    border-radius: 44rpx 44rpx 44rpx 44rpx;
    font-size: 32rpx;
    color: var(--benbenFontColor3);
    width: 686rpx;
    height: 80rpx;
    line-height: 80rpx;
    margin: 56rpx 8rpx 24rpx 8rpx;
  }

  .orderList_fd2_1_c1_c0 {
    width: 400rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .orderList_fd2_1_c1 {
    width: 100%;
    padding: 50rpx 0rpx 50rpx 0rpx;
  }

  .orderList_fd2_1_c0_c0_c1_c1_c1_c1 {
    color: #666666;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 40rpx;
    margin: 0rpx 0rpx 0rpx 12rpx;
  }

  .orderList_fd2_1_c0_c0_c1_c1_c1_c0 {
    width: 30rpx;
    height: 30rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .orderList_fd2_1_c0_c0_c1_c1_c0_c1 {
    margin: 8rpx 0rpx 0rpx 0rpx;
  }

  .orderList_fd2_1_c0_c0_c1_c1_c0_c0_c1 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 33rpx;
    margin: 0rpx 0rpx 0rpx 10rpx;
  }

  .orderList_fd2_1_c0_c0_c1_c1_c0_c0_c0 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 33rpx;
  }

  .orderList_fd2_1_c0_c0_c1_c1 {
    margin: 16rpx 0rpx 0rpx 0rpx;
  }

  .orderList_fd2_1_c0_c0_c1_c0_c2_c0_1 {
    color: #B82441;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 33rpx;
  }

  .orderList_fd2_1_c0_c0_c1_c0_c2_c0 {
    color: var(--benbenFontColor5);
    font-size: 24rpx;
    font-weight: 400;
    line-height: 33rpx;
  }

  .orderList_fd2_1_c0_c0_c1_c0_c2 {
    background: var(--benbenbgColor8);
    margin: 0rpx 0rpx 0rpx auto;
    border-radius: 8rpx 8rpx 8rpx 8rpx;
    padding: 0rpx 8rpx 0rpx 8rpx;
  }

  .orderList_fd2_1_c0_c0_c1_c0_c1 {
    width: 64rpx;
    height: 33rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 0rpx 0rpx 16rpx;
  }

  .orderList_fd2_1_c0_c0_c1_c0_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 500;
    line-height: 40rpx;
  }

  .orderList_fd2_1_c0_c0_c1 {
    margin: 0rpx 0rpx 0rpx 32rpx;
  }

  .orderList_fd2_1_c0_c0_c0 {
    width: 32rpx;
    height: 32rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .orderList_fd2_1_c0_c0 {
    background: #F8F8F8;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    padding: 32rpx 32rpx 32rpx 32rpx;
    margin: 32rpx 0rpx 0rpx 0rpx;
  }

  .orderList_fd2_1 {
    touch-action: none;
    height: 40vh;
    width: 702rpx;
  }

  .orderList_fd2_0_c3 {
    width: 40rpx;
    height: 40rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    position: absolute;
    top: -16rpx;
    right: 0rpx;
  }

  .orderList_fd2_0_c1 {
    color: #333333;
    font-size: 36rpx;
    font-weight: 500;
    line-height: 50rpx;
    margin: 0rpx 24rpx 0rpx 24rpx;
  }

  .orderList_fd2_0_c0 {
    width: 32rpx;
    height: 10rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .orderList_fd2_0 {
    position: relative;
  }

  .orderList_flex_3 {
    width: 686rpx;
    margin: 24rpx auto 24rpx auto;
  }

  .orderList_fd3_0_c2_c2 {
    margin: 0rpx 24rpx 0rpx 24rpx;
  }

  .orderList_fd3_0_c2_c0_c0 {
    width: 100rpx;
  }

  .swipers {
    width: 650rpx;
    height: 100rpx;
  }

  .swiper-items {
    width: 650rpx;
    // height: 100rpx;
  }

  .orderList_fd3_0_c2_c0 {
    margin: 12rpx 24rpx 12rpx 24rpx;
    // height: 80rpx;
    // line-height: 80rpx;
    // height: 80rpx;
  }

  .orderList_fd3_0_c1_c1 {
    width: 135rpx;
    height: 8rpx;
    position: absolute;
    bottom: 0rpx;
    left: 0rpx;
  }

  .orderList_fd3_0_c1_c0 {
    color: #10337E;
    font-size: 34rpx;
    font-weight: 800;
  }

  .orderList_fd3_0_c1 {
    position: relative;
    margin: 24rpx;
  }

  .orderList_fd3_0_c0 {
    font-size: 22rpx;
    position: absolute;
    right: 24rpx;
    top: 12rpx;
  }

  .orderList_fd3_0 {
    background: url(image-path('54.png')) no-repeat;
    background-size: 100% 100%;
    width: 686rpx;
    height: 350rpx;
    position: relative;
    padding-bottom: 24rpx;
  }

  .orderList_flex_4 {
    // background: #FFF;
    background: linear-gradient(to bottom, #FFFFFF, #f6f6f6);
    // background-size: 100% 100vh;
    border-radius: 44rpx 44rpx 0rpx 0rpx;
    position: relative;
    // z-index: 9;
    // height: 100vh;
  }

  .orderList_fd4_1_c4_c1_c2 {
    width: 36rpx;
    height: 36rpx;
    margin: 0rpx 0rpx 0rpx 20rpx;
  }

  .orderList_fd4_1_c4_c1_c1_c1 {
    color: rgba(16, 51, 126, 1);
    width: 320rpx;
  }

  .orderList_fd4_1_c4_c1_c1_c0 {
    width: 52rpx;
    height: 52rpx;
    margin: 0rpx 20rpx 0rpx 24rpx;
    border-radius: 50%;
  }

  .orderList_fd4_1_c4_c0_c1 {
    color: rgba(16, 51, 126, 1);
    margin: 0rpx 0rpx 0rpx 24rpx;
  }

  .orderList_fd4_1_c4_c0 {
    line-height: 28rpx;
  }

  .orderList_fd4_1_c4 {
    background: #F6F7F9;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    width: 638rpx;
    height: 152rpx;
    margin: 24rpx auto 0rpx auto;
    padding: 0rpx 24rpx 0rpx 24rpx;
  }

  .orderList_fd4_1_c1_c1 {
    color: #333;
    font-size: 26rpx;
  }

  .orderList_fd4_1_c1_c0 {
    color: var(--benbenFontColor2);
    font-size: 26rpx;
    padding: 24rpx;
  }

  .orderList_fd4_1_c0_c1_c0 {
    font-size: 28rpx;
    color: rgba(16, 51, 126, 1);
    font-weight: 600;
  }

  .orderList_fd4_1_c0 {
    background: linear-gradient(90deg, #D9E4FF 0%, rgba(217, 228, 255, 0) 100%);
    border-radius: 16rpx 16rpx 0rpx 0rpx;
    width: 686rpx;
    font-size: 28rpx;
    padding: 16rpx 24rpx 16rpx 24rpx;
  }

  .orderList_fd4_1 {
    background: #FFF;
    width: 686rpx;
    margin: 24rpx auto 0rpx auto;
    background-size: 100% auto;
  }

  .orderList_linefd4_0 {
    background: rgba(238, 190, 25, 1);
    width: 40rpx;
    height: 6rpx;
    top: 80rpx;
    background-size: 100% auto !important;
  }

  .checkTitlefd4_0 {
    font-weight: 700 !important;
    font-size: 32rpx !important;
    color: #10337E !important;
    background-color: rgba(255, 255, 255, 1) !important;
  }

  ::v-deep .orderList_benbenTabsfd4_0 {
    background: #fff;
    width: 750rpx;
    height: 90rpx;
    white-space: nowrap;
    text-align: center;
    border-radius: 44rpx;
  }
</style>
